<!DOCTYPE html>
<html lang='en'>

<head>
  <meta charset='UTF-8'>
  <meta http-equiv='X-UA-Compatible' content='IE=edge'>
  <meta name='viewport' content='width=device-width, initial-scale=1.0'>
  <title>工资想过万，键盘要敲烂</title>
  <style>

  </style>
</head>

<body>

  <script>
    const set1 = new Set()
    set1.add(10)
    set1.add(20)
    set1.add(10)
    set1.delete(20)
    console.log(set1);




    let arr = [1, 2, 3, 4, 5, 5, 4, 3, 2, 1]
    const set = new Set(arr)
    // console.log(set);
    let Array = [...set]
    console.log(Array);
  </script>
</body>

</html>